﻿using SqlSugar;

namespace SIMS.SqlSugarWebApi.Models
{
    public class Student
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        [SugarColumn(Length = 20)]
        public string No { get; set; }

        [SugarColumn(Length = 30)]
        public string Name { get; set; }

        public int Age { get; set; }

        public int Sex { get; set; }

        public int ClassesId { get; set; } = 0;

        [SugarColumn(Length = 30, IsNullable = true)]
        public string? ClassesName { get; set; }

        [SugarColumn(IsNullable = true)]
        public DateTime? CreateTime { get; set; }

        [SugarColumn(IsNullable = true)]
        public int? CreateUser { get; set; }

        [SugarColumn(IsNullable = true)]
        public DateTime? LastEditTime { get; set; }

        [SugarColumn(IsNullable = true)]
        public int? LastEditUser { get; set; }
    }
}
